; rdglobal.inc
; FE3 RAM Disk global definitions

.import device_no
.importzp ptr
.importzp ptr2
.import fname_buf 
	
	MAIN_BANK = 1			; 0 contains lower 3k, use 1 for programs
	CODE_BANK = 2
	FIRST_DATA_BANK = 3
	LAST_DATA_BANK = 16
	
.define VERSION "v1.0.0"
	
; KERNAL I/O error codes
ERR_TOO_MANY_FILES = 1
ERR_FILE_OPEN = 2
ERR_FILE_NOT_OPEN = 3
ERR_FILE_NOT_FOUND = 4
ERR_DEVICE_NOT_PRESENT = 5
ERR_NOT_INPUT_FILE = 6
ERR_NOT_OUTPUT_FILE = 7
ERR_MISSING_FILENAME = 8
ERR_ILLEGAL_DEVICE_NUMBER = 9

; BASIC & KERNAL vectors
NMI_VECTOR	=	$0318
OPEN_VECTOR =   $031A
CLOSE_VECTOR =  $031C
CHKIN_VECTOR =  $031E
CKOUT_VECTOR =  $0320
CLRCH_VECTOR =  $0322
INPUT_VECTOR =  $0324
OUTPUT_VECTOR = $0326
GETIN_VECTOR =	$032A
CLALL_VECTOR =	$032C
LOAD_VECTOR = 	$0330
SAVE_VECTOR =	$0332

	OUTBUF = $95
